/*
 * @Descripttion: 
 * @Author: zhanyi
 * @Date: 2021-10-26 13:54:12
 * @FilePath: \wczd-mobile\src\api\user.js
 */
// 引入工具类
import request from '@/utils/request.js'

// 部门列表
export function getDeptList (params) {
  return request({
    url: '/system/dept/treeselect',
    method: 'get',
    params: params
  })
}

// 获取公司的部门
export function selectDeptListByMineCompany() {
  return request({
    url: '/system/dept/selectDeptListByMineCompany',
    method: 'post'
  })
}

// 人员列表 
export function selectUserByDeptIds (params) {
  return request({
    url: '/system/user/selectUserByMineCompanyDeptIds',
    method: 'post',
    params: params
  })
}

// 我的消息
export function msgListToMine (data, params) {
  return request({
    url: '/business/msgInfo/msgListToMine',
    method: 'post',
    data: data,
    params: params
  })
}

// 系统消息列表
export function msgInfoOne (params) {
  return request({
    url: '/business/msgInfo/one',
    method: 'post',
    params: params
  })
}


// 系统消息编辑
export function msgInfoEdit (data) {
  return request({
    url: '/business/msgInfo/edit',
    method: 'post',
    data: data
  })
}

// 查询用户个人信息
export function getUserProfile () {
  return request({
    url: '/system/user/profile',
    method: 'get'
  })
}


// 获取公司三级树
export function getMyThreeDeptlist() {
  return request({
    url: '/system/dept/getMyThreeDeptlist',
    method: 'get'
  })
}

// 查询用户详细
export function selectUserListByPersonId(params) {
  return request({
    url: '/system/user/selectUserListByPersonId',
    method: 'post',
    params
  })
}

export function sureChangeUser(params) {
  return request({
    url: '/system/user/sureChangeUser',
    method: 'post',
    params
  })
}